package com.hyt.it.ogt.pj.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyt.it.ogt.pj.model.entity.ProjectDataDownLoadRecord;

/**
 * <p>
 * 评卷项目表数据导出记录 Mapper 接口
 * </p>
 */
public interface ProjectDataDownLoadRecordMapper extends BaseMapper<ProjectDataDownLoadRecord> {


	/***
     * 获取导出记录的最新信息
     * @param projectId
     * @param officeid
     * @param fileType 
     * @return ProjectDataDownLoadRecord
     */
	ProjectDataDownLoadRecord getLastOneByProjectAndFileType(@Param("projectId") String projectId,@Param("officeId") String officeId, @Param("fileType") String fileType);

	
	/***
	 * 
	 * @param projectId
	 * @param officeId
	 * @param fileType
	 * @return
	 */
	Integer getLastOneByProjectAndFileTypeTimes(@Param("projectId") String projectId,@Param("officeId") String officeId, @Param("fileType") String fileType);


	List<ProjectDataDownLoadRecord> getIsRunningDownloadFileRecord(@Param("projectIds") List<String> projectIds, @Param("fileType") String fileType);
}
